#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/10/10 13:53
@desc
"""

# s = "abcd"
# 
# def printstr(s):
#     print("Str = %s" % s.capitalize())  # 首字母大写
# 
# 
# if __name__ == "__main__":
#     print("start test !!!")
#     printstr("this is my test str.")
# 

# import re
#
# def replace_by_lst(sql, params):
#     for p in params:
#         sql = re.sub('\?', p, sql, 1)
#     return sql
#
#
# params = [' 01011A01', ' \xb2\xe2\xca\xd4', ' 01', ' \xcc\xab\xd4\xad\xb5\xd8\xc7\xf8', ' 01', ' \xcc\xab\xd4\xad\xca\xd0              ', ' 1A', ' \xba\xcb\xd0\xc4\xc9\xcc\xc8\xa6\xcd\xa8\xd0\xc5\xc0\xe0', ' ', ' 0.13']
# sql = """insert into SXGIS.TB_GIS_GRID_SHAPE (  GRID_ID, GRID_NAME,  REGION_CODE,REGION_NAME,CITY_CODE,CITY_NAME, GRID_TYPE, GRID_TYPE_DESC,GRID_STAGE,GRID_AREA,Shape)     values(?,?,?,?,?,?,?,?,?,?,new ST_Geometry('POLYGON((112.34897778039355 37.60573284359543,112.3541490793744 37.605528850739766,112.35421345239077 37.60556284958789,112.35429928307924 37.60294489281326,112.3490206957378 37.603097892821985,112.34897778039355 37.60573284359543))',1619) )"""
#
# sql = replace_by_lst(sql, params)
# print(sql)

# file_name = 'ip_check_{}'.format(str(100))
# print(file_name)

# host = 'http=125.123.139.175:9999'
# host = host.split('=')
# print(dict(zip(host[0::2], host[1::2])))

for i in range(1, 10):
    print(i)

# sign = '%s'
# print(','.join(sign * 3))
# from ippool.lib.pooldao.ip_pool_dao import IpPool
#
# ipl = IpPool(ip_port='112.87.68.73:9999', protocol='https', get_time='20190301094500')
#
# print(ipl)
